google.load("feeds", "1");

	function initialize() {
		var feed = new google.feeds.Feed("http://www.peterbe.com/rss.xml");
		feed.load(function(result) {
			if (!result.error) {
				var container = document.getElementById("feed1");
				for ( var i = 0; i < result.feed.entries.length; i++) {
					var entry = result.feed.entries[i];
					//var attributes = ["title", "link", "contentSnippet"];
				var attributes = [ "title", "link" ];
				for ( var j = 0; j < 2; j++) {
					var div = document.createElement("div");
					var curr_attr = attributes[j];
					if (curr_attr == "link") {
						var anchorTag = document.createElement('a');
						var sometext = document
								.createTextNode("click this link");
						anchorTag.appendChild(sometext);
						anchorTag.setAttribute("href", entry[curr_attr]);
						div.appendChild(anchorTag);
					} else {
						var curr_entry = entry[curr_attr];
						div.appendChild(document.createTextNode(curr_entry));
					}
					container.appendChild(div);
				}
			}
		}
	})	;

		var feed2 = new google.feeds.Feed(
				"http://www.livestrong.com/health/rss/");
		feed2.load(function(result) {
			if (!result.error) {
				var container2 = document.getElementById("feed2");
				for ( var i = 0; i < result.feed.entries.length; i++) {
					var entry = result.feed.entries[i];
					var attributes = [ "title", "link" ];
					for ( var j = 0; j < 2; j++) {
						var div = document.createElement("div");
						var curr_attr = attributes[j];
						if (curr_attr == "link") {
							var anchorTag = document.createElement('a');
							var sometext = document
									.createTextNode("click this link");
							anchorTag.appendChild(sometext);
							anchorTag.setAttribute("href", entry[curr_attr]);
							div.appendChild(anchorTag);
						} else {
							var curr_entry = entry[curr_attr];
							div
									.appendChild(document
											.createTextNode(curr_entry));
						}
						container2.appendChild(div);
					}
				}
			}
		});

		var feed3 = new google.feeds.Feed(
				"http://feeds.feedburner.com/Wwwhealthnfitnesscarecom");
		feed3.load(function(result) {
			if (!result.error) {
				var container3 = document.getElementById("feed3");
				for ( var i = 0; i < result.feed.entries.length; i++) {
					var entry = result.feed.entries[i];
					var attributes = [ "title", "link" ];
					for ( var j = 0; j < 2; j++) {
						var div = document.createElement("div");
						var curr_attr = attributes[j];
						if (curr_attr == "link") {
							var anchorTag = document.createElement('a');
							var sometext = document
									.createTextNode("click this link");
							anchorTag.appendChild(sometext);
							anchorTag.setAttribute("href", entry[curr_attr]);
							div.appendChild(anchorTag);
						} else {
							var curr_entry = entry[curr_attr];
							div
									.appendChild(document
											.createTextNode(curr_entry));
						}
						container3.appendChild(div);
					}
				}
			}
		});

	}
	google.setOnLoadCallback(initialize);